<?php
namespace app\admin\validate;

class Rule extends \app\common\validate\Base {
	protected $rule=[
		'title|权限可读名称'=>'length:2,32',
		'name|权限内部名称' => 'regex:[a-z_]+',
		'pid|上级权限' => 'check_id0:Rule',
		'status|状态'=>'regex:[01]'
	];

	protected $create_require=['title','name','pid','status'];
}
?>